<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
    <style>
    .father {
      width: 80%;
      height: 150px;
      background-color: pink;
    }
    .flex {
      display: flex;
    }
    .son {
      background-color: red;
      flex: 1;
    }
    .father .son:nth-child(1) {
      margin: 70px;
    }
    </style>
    <link href="css/style.css" rel="stylesheet">
  </head>
  <body>
    <div class="father flex">
      <span class="son">1</span>
      <span class="son">2</span>
      <span class="son">3</span>
    </div>
    <hr>
    <div class="father">
      <span class="son">1</span>
      <span class="son">2</span>
      <span class="son">3</span>
    </div>
    <p>父级设置为flex布局，哪怕子级是行内元素，子级也会有flex布局特性</p>
  </body>
</html>
